from django.urls import path, include
from rest_framework.routers import DefaultRouter
from users.views import UserViewSet, ProfileViewSet
from agents.views import AgentTypeViewSet, AgentViewSet, ConversationViewSet, MessageViewSet

# 创建API路由器
router = DefaultRouter()

# 用户相关API
router.register(r'users', UserViewSet)
router.register(r'profiles', ProfileViewSet)

# 智能体相关API
router.register(r'agent-types', AgentTypeViewSet)
router.register(r'agents', AgentViewSet)
router.register(r'conversations', ConversationViewSet)
router.register(r'messages', MessageViewSet)

# 学习相关API将在后续添加
# router.register(r'courses', CourseViewSet)
# router.register(r'lessons', LessonViewSet)

# 知识库相关API将在后续添加
# router.register(r'knowledge-bases', KnowledgeBaseViewSet)
# router.register(r'documents', DocumentViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('auth/', include('rest_framework.urls')),  # DRF认证页面
]